package com.kmt.plaza.sevice;

import com.kmt.plaza.entity.*;
import com.kmt.plaza.vo.ResultVO;
import org.springframework.stereotype.Repository;

import javax.print.attribute.standard.PrinterURI;

@Repository
public interface ProductService {
    public ResultVO listRecommendProducts();
    public ResultVO getProductBasicInfo(String productId);
    public ResultVO selectProductLists(int pageNum,int limit);
    //新增商品
    public int insertProduct(Product product);
    //新增商品
    public int insertProductParam(ProductParams productParams);
    //新增商品
    public int insertProductSku(ProductSku productSku);
    //新增商品
    public int insertProductImg(ProductImg productImg);
    //删除商品
    public int deleteProduct(String productId);
    //修改商品
    public int  updateProduct(Product product);
    public int  updateProductParam(ProductParams productParams);
    public int  updateProductSku(ProductSku productSku);
    public int  updateProductImg(ProductImg productImg);
    //按条件查询商品
    public ResultVO selectByCondition(int pageNum,int limit,String keyWord,String productStatus,String firstClassityId);

//    pageNum: limit:
//    keyWord: tproductStatus: firstClassityID:

    //根据类别查询商品信息
    ResultVO getProductsByCategoryId(int classifyId,int pageNum,int limit);

    //根据类别查询品牌
    ResultVO listBrands(int cid);

    //模糊查询商品信息
    ResultVO searchProduct(String kw, int pageNum, int limit);

    //根据关键字查询品牌
    public ResultVO listBrands(String kw);
    /**
     * 管理员商品总览
     */
    public ResultVO productOverview();
    /**
     * 管理员查询共存紧张
     */
    public ResultVO inventoryShortage();

}
